package com.im.project.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 修改群组参数对象
 *
 * @author yunZhouJiaDi
 */
@Data
@Accessors(chain = true)
public class UpdateClusterDto {

    @NotEmpty(message = "群组id不能为空")
    @ApiModelProperty("群id")
    private String clusterId;

    @NotEmpty(message = "群组名称不能为空")
    @ApiModelProperty("群组名称")
    private String name;

    @NotEmpty(message = "群组头像不能为空")
    @ApiModelProperty("群组头像")
    private String icon;

    @ApiModelProperty("群通知")
    @NotEmpty(message = "群通知不能为空")
    private String notice;

    @NotNull(message = "加群方式不能为空")
    @ApiModelProperty("加群方式")
    private Integer joinType;

    @NotNull(message = "是否禁言不能为空")
    @ApiModelProperty("是否禁言（0:否 1:是）")
    private Integer mute;

}
